<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends CI_Controller {
	var $key = '首页';

	public function index()
	{		
		$this->load->config('company');
		$data['company'] = $this->config->item('company');
		
		$this->load->config('news');
		$data['news'] = $this->config->item('news');
		
		$this->load->config('knowledge');
		$data['knowledge'] = $this->config->item('knowledge');
		
		$this->load->config('designspace');
		$data['designspace'] = $this->config->item('designspace');
		
		$this->load->config('pic');
		$data['pic'] = $this->config->item('pic');
		$data['key'] = $this->key;
		
		$this->load->view('home', $data);
	}
	
	public function branch(){
		$this->load->config('branch');
		$data['branchs'] = $this->config->item('branch');
		
		$this->load->config('company');
		$data['company'] = $this->config->item('company');
		
		$this->load->view('branch', $data);
	}	
}